package com.pioneer.web.train.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pioneer.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * Title:TrainNews
 * Description:
 *
 * @Author 罗熠轩
 * @Date 26/2/2025 PM2:10
 * @Version 1.0
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("train_news")
public class TrainNews extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long newsId;

    @TableField(exist = false)
    private Long categoryCode;

    @TableField(exist = false)
    private String categoryName;

    private Long categoryId;
    private String title;
    private String subTitle;
    private String content;

}
